package main

import (
	_ "test/routers"
	"github.com/astaxie/beego"
	"fmt"
	"test/libraries"
)

func init() {
	fmt.Println("Influx syttem start.")

	mongo := libraries.MongoDB{}
	mongo.Init()
}

func main() {
	//开启sessio
	beego.BConfig.WebConfig.Session.SessionOn = true

	beego.Run()
}
